#include <xp/utl/auth.h>
#include <xp/bas/stdio.h>

int xp_main (int argc, xp_char_t* argv[])
{
	if (argc != 3) {
		xp_printf (XP_TEXT("usage: %s username password\n"), argv[0]);
		return -1;
	}

	if (xp_chpasswd(XP_TEXT("passwd"), argv[1], argv[2]) == -1) 
		xp_printf (XP_TEXT("password change failure: %s\n"), argv[1]);
	else 
		xp_printf (XP_TEXT("password change success: %s\n"), argv[1]);
	return 0;
}
